#ifndef TREEAPP_H
#define TREEAPP_H

#include <QMainWindow>
#include <QFileSystemModel>
#include "treemodel.h"

QT_BEGIN_NAMESPACE
namespace Ui { class TreeApp; }
QT_END_NAMESPACE

class TreeApp : public QMainWindow
{
    Q_OBJECT

public:
    TreeApp(QWidget *parent = nullptr);
    ~TreeApp();

     void readFile();

private slots:
    void on_actionSelect_a_file_triggered();
    void doubleClicked(QModelIndex);

private:
    Ui::TreeApp *ui;
    TreeModel *model;
};
#endif // TREEAPP_H
